package cn.jiyun.enums;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 12 03 14 08
 **/


public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    UNKNOWN_REASON(202,"未知错误"),

    LOGIN_SUCCESS(301,"登录成功"),


    USERNAME_NOT_EXIST(501,"用户名不存在"),
    PASSWORD_ERROR(502,"密码错误"),
    BAD_SQL_GRAMMAR(210,"sql语法错误"),
    JSON_PARSE_ERROR(211,"json解析异常"),
    PARAM_ERROR(212,"参数不正确"),
    FILE_NOT_FOUND(213,"文件不存在"),
    FILE_READ_ERROR(214,"文件读取异常"),
    FILE_UPLOAD_ERROR(215,"文件上传异常"),
    FILE_DELETE_ERROR(216,"文件删除异常");

    Integer code;
    String msg;


    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResultCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }



}
